﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="wlogList.aspx.cs" Inherits="apps_wlog_wlogList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    Risorsa:
        <asp:DropDownList ID="ddlResources" runat="server">
        </asp:DropDownList>
&nbsp;Periodo:
        <asp:TextBox ID="TextBoxAnno" runat="server" Width="45px" MaxLength="4"></asp:TextBox>
        <asp:DropDownList ID="DropDownListMese" runat="server">
            <asp:ListItem Value="1">GENNAIO</asp:ListItem>
            <asp:ListItem Value="2">FEBBRAIO</asp:ListItem>
            <asp:ListItem Value="3">MARZO</asp:ListItem>
            <asp:ListItem Value="4">APRILE</asp:ListItem>
            <asp:ListItem Value="5">MAGGIO</asp:ListItem>
            <asp:ListItem Value="6">GIUGNO</asp:ListItem>
            <asp:ListItem Value="7">LUGLIO</asp:ListItem>
            <asp:ListItem Value="8">AGOSTO</asp:ListItem>
            <asp:ListItem Value="9">SETTEMBRE</asp:ListItem>
            <asp:ListItem Value="10">OTTOBRE</asp:ListItem>
            <asp:ListItem Value="11">NOVEMBRE</asp:ListItem>
            <asp:ListItem Value="12">DICEMBRE</asp:ListItem>
        </asp:DropDownList>
        &nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="Button1" runat="server" Text="Load" />&nbsp;&nbsp;&nbsp;&nbsp;<a href="wlogEdit.aspx?wlId=N">New log...</a>
        <br />
        <br />
        <div>
            <asp:Repeater ID="Repeater1" runat="server">
            <HeaderTemplate>
            <table>
            <thead>
                <tr><th>SET</th><th>CMD</th><th>DATA</th><th>JOBS</th><th>UNIT</th><th>MESURE</th></tr>
            </thead>
            </HeaderTemplate>
            <ItemTemplate>
                <tr><td><%# System.DateTime.Parse(Eval("DayDate").ToString()).DayOfWeek.ToString() %></td><td><a href="wlogEdit.aspx?wlId=<%# Eval("WorkLogId")%>">Edit</a></td><td><%# System.DateTime.Parse(Eval("DayDate").ToString()).ToShortDateString()%></td><td><%# Eval("Job")%></td><td><%# Eval("NumberOfUnit")%></td><td><%# Eval("UnitMeasures")%></td></tr>
            </ItemTemplate>
            <FooterTemplate>
            </table>
            </FooterTemplate>
            </asp:Repeater>
        </div>
        <br />
        <br />
    </div>
    
    </form>
</body>
</html>
